/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.employee.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 奖惩记录Entity
 * @author jyangye
 * @version 2017-12-28
 */
public class ViEmpSanction extends DataEntity<ViEmpSanction> {
	
	private static final long serialVersionUID = 1L;
	private String employeeId;		// 员工ID

	private String name;		// 姓名
	private String code;		// 编号
	private Date makeDate;		// 奖惩日期
	private String isReward;		// 奖/惩
	private String type;		// 奖惩类型
	private String content;		// 奖惩内容
	private String reason;		// 奖惩原因
	private Double money;		// 奖惩金额
	private String isActive;		// 是否生效
	private Date beginMakeDate;		// 开始 奖惩日期
	private Date endMakeDate;		// 结束 奖惩日期

    private Office comp;
    private Office dept;
    private Office post;
	
	public ViEmpSanction() {
		super();
	}

	public ViEmpSanction(String id){
		super(id);
	}

	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

	
	@Length(min=1, max=32, message="姓名长度必须介于 1 和 32 之间")
	@ExcelField(title="姓名", align=2, sort=10)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=32, message="身份证号长度必须介于 1 和 18 之间")
	@ExcelField(title="*身份证号", align=2, sort=20, isText = true)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}


    public Office getComp() {
        return comp;
    }

    public void setComp(Office comp) {
        this.comp = comp;
    }

    @ExcelField(title="部门", align=2, sort=40)
    public Office getDept() {
        return dept;
    }

    public void setDept(Office dept) {
        this.dept = dept;
    }

    @ExcelField(title="职位", align=2, sort=50)
    public Office getPost() {
        return post;
    }

    public void setPost(Office post) {
        this.post = post;
    }

    @JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="*奖惩日期", align=2, sort=60)
	public Date getMakeDate() {
		return makeDate;
	}

	public void setMakeDate(Date makeDate) {
		this.makeDate = makeDate;
	}
	
	@Length(min=0, max=11, message="奖/惩长度必须介于 0 和 11 之间")
	@ExcelField(title="*奖/惩", align=2, sort=70, dictType = "emp_is_reward")
	public String getIsReward() {
		return isReward;
	}

	public void setIsReward(String isReward) {
		this.isReward = isReward;
	}
	
	@Length(min=0, max=32, message="奖惩类型长度必须介于 0 和 32 之间")
	@ExcelField(title="*奖惩类型", align=2, sort=80, dictType = "emp_reward_type")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="奖惩内容长度必须介于 0 和 64 之间")
	@ExcelField(title="*奖惩内容", align=2, sort=90)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=64, message="奖惩原因长度必须介于 0 和 64 之间")
	@ExcelField(title="*奖惩原因", align=2, sort=100)
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}
	
	@ExcelField(title="*奖惩金额", align=2, sort=130)
	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}
	

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}
	
	public Date getBeginMakeDate() {
		return beginMakeDate;
	}

	public void setBeginMakeDate(Date beginMakeDate) {
		this.beginMakeDate = beginMakeDate;
	}
	
	public Date getEndMakeDate() {
		return endMakeDate;
	}

	public void setEndMakeDate(Date endMakeDate) {
		this.endMakeDate = endMakeDate;
	}
		
}